from rest_framework import permissions
class IsOwnerOrReadOnly(permissions.BasePermission):
    def has_permission(self, request, view):
        print(request.method,'meth')
        print(request.path,'path')
        print(request.user,'user')
        print(view,'self')
        return True